﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Register
</asp:Content>

<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Crear una Nueva Cuenta</h2>
    <p>
        Use el siguiente formulario para crear una nueva cuenta en PGMobile. 
    </p>
    <p>
        El password requiere tener al menos un largo de <%=Html.Encode(ViewData["PasswordLength"])%> letras.
    </p>
    <%= Html.ValidationSummary("La cuenta no pudo ser creada. Por favor corrija los errores e intente nuevamente.") %>

    <% using (Html.BeginForm()) { %>
        <div>
            <fieldset>
                <legend>Información de la Cuenta</legend>
                <label for="username">Nombre de usuario:</label>
                <%= Html.TextBox("username", "", new { Class = "input-box", size = "50" })%>
                <%= Html.ValidationMessage("username", new { Class = "error-label" })%>
                <label for="email">Email:</label>
                <%= Html.TextBox("email", "", new { Class = "input-box", size = "50" })%>
                <%= Html.ValidationMessage("email", new { Class = "error-label" })%>
                <label for="password">Password:</label>
                <%= Html.Password("password", "", new { Class = "input-box", size = "50" }) %>
                <%= Html.ValidationMessage("password", new { Class = "error-label" })%>
                <label for="confirmPassword">Confirmar password:</label>
                <%= Html.Password("confirmPassword", "", new { Class = "input-box", size = "50" })%>
                <%= Html.ValidationMessage("confirmPassword", new { Class = "error-label" })%>
                <label for="celular">Celular:</label>
                <%= Html.TextBox("celular", "", new { Class = "input-box", size = "50" })%>
                <%= Html.ValidationMessage("celular", new { Class = "error-label" })%>
                <label for="fechaNac">Fecha de nacimiento:</label>
                <%= Html.DatePicker("fechaNac", "/Pgmobile/Content/images/calendar.gif", this.ViewData["TheDate"])%>
                <input class="button" type="submit" value="Registrarse" />
            </fieldset>
        </div>
    <% } %>
</asp:Content>
